<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    home页面

<ul class="list">
<li>111</li>
</ul>
</body>

<script>
    fetch("/home/list").then(res => res.json())
    .then(res => {
        console.log('aaa',res)
        render(res)
    })
    function render(data){
       var list=data.map(item => `<li>${item}</li>`)
     var oul=document.querySelector(".list")
     oul.innerHTML=list.join("")
    }
</script>
</html>